﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CommerceOne.Common;
using CommerceOne.Widgets.HeroImage;
using CommerceOne.Widgets.LeftCategoryNav;


namespace CommerceOne.Models
{
    public class ViewModelBase
    {
        //public LeftCategoryViewModel LeftCategoryNavViewModel { get; set; }

        //public LeftBrandNavViewModel LeftBrandNavViewModel { get; set; }
        public string CartLink { get; set; }
        public int ItemNumber { get; set; }
        public HeroImageViewModel HeroImage { get; set; }
        public LeftCategoryViewModel LeftCategoryViewModel { get; set; }
        public Cart Cart { get; set; }
        public decimal TotalPrice
        {
            get
            {
                return this.Cart == null ? 0 : this.Cart.ComputeTotal();
            }
        }

        public decimal ShippingCost
        {
            get
            {
                return this.Cart == null ? 0 : this.Cart.ShippingCost;
            }
        }
    }
}